<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>文档展示</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../layui/css/layui.css" media="all">
    <link rel="stylesheet" href="./../../JS/ztreev3/css/bootstrapStyle/bootstrapStyle.css">
    <link rel="stylesheet" href="./../../JS/ztreev3/css/demo.css">
    <link rel="stylesheet" href="../../CSS/media.css">
    <style>
        body{
            overflow-x: hidden;
        }
        .user_search{
            height: 30px;
            width: 100%;
            text-align:center;
            margin:0px auto;
            padding: 20px;
        }
        .showGruop {
            display: none;
        }
        #Content{
            width: 100%;
            /*height:700px;*/
            border: medium none;
            box-shadow:0px 4px 10px 5px rgba(0,0,0,0.2);
        }
        .layui-nav{
            background: unset!important;
        }
        .layui-nav .layui-nav-item a {
            color: #868686!important;
            font-weight: bold;
            padding-left: 50px;
        }
        .layui-nav i{
            font-weight: normal!important;
            font-size: 18px;
            color: #868686;
            position: absolute;
            left: 20px;
            z-index: 999;
        }
        .layui-nav li :hover{
            color: #1E9FFF!important;
            background: #b6deff!important;
        }
        .layui-nav li :hover i{
            color: #1E9FFF!important;
        }
        .home{
            width: 80%;
            margin: 10px auto;
            background-color: hsl(0, 0%, 100%);
            box-sizing: border-box;
            padding-top: 1px;
        }
        /* .search{
            text-align: center;
            margin: 30px auto 5px;
            width: 550px;
        } */
        .layui-col-space20{
            margin: 0px;
        }
        .fontStyle{
            font-size: 14px;
            font-weight: 700;
        }
        .fontStyle span{
            font-weight: 500 !important;
        }
        .s_btn {
            width: 40%;
            /* float: right; */
            position: relative;
            margin: 0 auto;
            margin-top: 12px;
        }

        .s_btn i {
            font-size: 38px;
            color: #fff;
            position: absolute;
            /* top: 30px; */
            cursor: pointer;
            background: #1E9FFF;
            text-align: center;
            border-top-right-radius: 5px;
            border-bottom-right-radius: 5px;
            padding: 4px;
        }

        .s_btn input {
            height: 50px;
            background: #f1f1f1;
            border: none;
            font-size: 16px;
            width: 80%;
            display: inline-block;
        }
    </style>
</head>
<body>
<div class="home">
    <!-- 搜索 -->
    <div class="s_btn">
        <input type="text" name="title" placeholder="请输入查询内容" autocomplete="off" class="layui-input search">
        <i class="layui-icon ">&#xe615;</i>
    </div>
    <div class="layui-row layui-col-space20">
        <div class="layui-row fontStyle">文档中心 > <span>新手入门</span></div>
        <div class="layui-col-md2">
            <div style="box-shadow: 0 4px 11px 0px #bbbbbb;height: 700px;margin: 0px;padding: 1px; ">
                <div class="s_btn" style="width:80%; height:30px;">
                    <input type="text" name="title" placeholder="请输入查询内容" autocomplete="off" class="layui-input search" style="height:30px;font-size: 12px; text-align: left;">
                    <i class="layui-icon " style="font-size: 19px;">&#xe615;</i>
                </div>
                <div class="ztree" id="UserTree" style="margin-top: 10px;"></div>
            </div>
        </div>
        <div class="layui-col-md10 media">
            <iframe  src="DocumentDetail.html"  style="width:100%;overflow-x: hidden; overflow-y:scroll" id="Content" name="Content" height="700"  scrolling="no" ></iframe>
        </div>
    </div>
</div>
<script src="../../JS/jquery-2.0.3.js"></script>
<script src="../../layui/layui.js" charset="utf-8"></script>
<script src="./../../JS/ztreev3/js/jquery.ztree.all.js"></script>
<script src="../../JS/Personal/PanelControl.js"></script>
<script src="./../../JS/Document/Document.js"></script>
<script>
    layui.use('element', function () {
        var element = layui.element; //导航的hover效果、二级菜单等功能，需要依赖element模块

        //监听导航点击
        element.on('nav(demo)', function (elem) {
            //console.log(elem)
            layer.msg(elem.text());
        });
    });
    // 接受上个页面的菜单名称
    var text = parent.getUrlParam(window.location.search,'text');
    $('.fontStyle>span').text(text)
    $(function () {
        $('.p_manage').click(function () {
            if(  $('.layui-nav-child').css('display') === 'none') {
                $('.layui-nav-child').show().animate({'marginLeft':'0px'},100);
                $('.layui-col-md10').animate({'marginLeft':'150px','width':'100%'},100)
            } else {
                $('.layui-nav-child').hide().animate({'marginLeft':'-145px'},100);
                $('.layui-col-md10').animate({'marginLeft':'0px','width':'unset'},100)
            }

        })
    })
</script>

</body>
</html>